﻿using System;
using System.Collections.Generic;
using System.Text;

namespace BackstageMusiciansFriend
{
    public enum ProdPart
    {
        Link,
        Title,
        Header,
        Description,
        Features,
        Bottom,
        Specifications,
        Images,
        Price,
        Other
    }

    public enum TipoMoneda
    {
        MonedaPesosARG,
        MonedaDolarUSD
    }

    public class TinyProd
    {
        private int number;
        private string link;
        private string price;

        public TinyProd()
        {
        }

        public int Number
        {
            get { return number; }
            set { number = value; }
        }
        public string Link
        {
            get { return link; }
            set { link = value; }
        }
        public string Price
        {
            get { return price; }
            set { price = value; }
        }
    }
    
    public class Product
    {
        private string link;
        private string title;
        private string header;
        private string description;
        private string features;
        private string bottom;
        private string specifications;
        private string images;
        private string price;

        public Product()
        {
        }

        public string Link
        {
            get { return link; }
            set { link = value; }
        }
        public string Title
        {
            get { return title; }
            set { title = value; }
        }
        public string Header
        {
            get { return header; }
            set { header = value; }
        }
        public string Description
        {
            get { return description; }
            set { description = value; }
        }
        public string Features
        {
            get { return features; }
            set { features = value; }
        }
        public string Bottom
        {
            get { return bottom; }
            set { bottom = value; }
        }
        public string Specifications
        {
            get { return specifications; }
            set { specifications = value; }
        }
        public string Images
        {
            get { return images; }
            set { images = value; }
        }
        public string Price
        {
            get { return price; }
            set { price = value; }
        }
    }

    public class ProductML
    {
        private string price;
        private string title;
        private string header;
        private string description;
        private string features;
        private string specifications;
        private string bottom;
        private string images;
        private string marquee_1;
        private string marquee_2;
        private string marquee_3;
        private string marquee_4;
        private string marquee_5;
        private string marquee_6;
        private string marquee_7;
        private string marquee_8;
        private string marquee_9;
        private string marquee_10;
        private string text_1;
        private string text_2;
        private string text_3;
        private string subtitle;
        private string quantity;
        private TipoMoneda currency;

        public ProductML()
        {
        }

        public string Price
        {
            get { return price; }
            set { price = value; }
        }
        public string Title
        {
            get { return title; }
            set { title = value; }
        }
        public string Header
        {
            get { return header; }
            set {

                if (value == "N/D")
                    header = String.Empty;
                else
                header = value; }
        }
        public string Description
        {
            get { return description; }
            set { description = value; }
        }
        public string Features
        {
            get { return features; }
            set {
                if (value == "N/D")
                    features = String.Empty;

                else
                features = value; }
        }
        public string Specifications
        {
            get { return specifications; }
            set {
                if (value == "N/D")
                    specifications = String.Empty;
                else
                specifications = value; }
        }
        public string Bottom
        {
            get { return bottom; }
            set {
                if (value == "N/D")
                    bottom = String.Empty;
                else
                bottom = value; }
        }
        public string Images
        {
            get { return images; }
            set { images = value; }
        }
        public string Marquee_1
        {
            get { return marquee_1; }
            set {
                if (value == "N/D")
                    marquee_1 = String.Empty;
                else   
                marquee_1 = value; }
        }
        public string Marquee_2
        {
            get { return marquee_2; }
            set {
                if (value == "N/D")
                    marquee_2 = String.Empty;
                else
                marquee_2 = value; }
        }
        public string Marquee_3
        {
            get { return marquee_3; }
            set {
                if (value == "N/D")
                    marquee_3 = String.Empty;
                else
                marquee_3 = value; }
        }
        public string Marquee_4
        {
            get { return marquee_4; }
            set {
                if (value == "N/D")
                    marquee_4 = String.Empty;
                else
                marquee_4 = value; }
        }
        public string Marquee_5
        {
            get { return marquee_5; }
            set {
                if (value == "N/D")
                    marquee_5 = String.Empty;
                else
                marquee_5 = value; }
        }
        public string Marquee_6
        {
            get { return marquee_6; }
            set {
                if (value == "N/D")
                    marquee_6 = String.Empty;
                else
                marquee_6 = value; }
        }
        public string Marquee_7
        {
            get { return marquee_7; }
            set {
                if (value == "N/D")
                    marquee_7 = String.Empty;
                else
                marquee_7 = value; }
        }
        public string Marquee_8
        {
            get { return marquee_8; }
            set {
                if (value == "N/D")
                    marquee_8 = String.Empty;
                else
                marquee_8 = value; }
        }
        public string Marquee_9
        {
            get { return marquee_9; }
            set {
                if (value == "N/D")
                    marquee_9 = String.Empty;
                else
                marquee_9 = value; }
        }
        public string Marquee_10
        {
            get { return marquee_10; }
            set {
                if (value == "N/D")
                    marquee_10 = String.Empty;
                else
                marquee_10 = value; }
        }
        public string Text_1
        {
            get { return text_1; }
            set {
                if (value == "N/D")
                    text_1 = String.Empty;
                else
                text_1 = value; }
        }
        public string Text_2
        {
            get { return text_2; }
            set {
                if (value == "N/D")
                    text_2 = String.Empty;
                else
                text_2 = value; }
        }
        public string Text_3
        {
            get { return text_3; }
            set {
                if (value == "N/D")
                    text_3 = String.Empty;
                else
                text_3 = value; }
        }
        public string Subtitle
        {
            get { return subtitle; }
            set { subtitle = value; }
        }
        public string Quantity
        {
            get { return quantity; }
            set { quantity= value; }
        }
        public void setCurrency(string value)
        {
            if (value == "1")
                currency = TipoMoneda.MonedaPesosARG;
            else
                currency = TipoMoneda.MonedaDolarUSD;
        }
        public string getCurrency()
        {
            if (currency == TipoMoneda.MonedaPesosARG)
                return "ARS";
            else
                return "USD";
        }
    }
}
